
import request, { REQUEST_TYPE } from './request'
/**
 * 获取轨道预测参数列表
 * */
const BASE_URL = '/baseServer'
export function getDataList(data) {
    return request({
        url: `${BASE_URL}/rsmis-gdyc-service/orbital_prediction_config/getList`,
        data: data,
        method: REQUEST_TYPE.POST_JSON
    })
}
//表格编辑
export function editData(data){
    return request({
        url: `${BASE_URL}/rsmis-gdyc-service/orbital_prediction_config/edit`,
        data: data,
        method: REQUEST_TYPE.POST_JSON
    })
}
//内容下载
export function downRow(data){
    return request({
        url: `${BASE_URL}/rsmis-gdyc-service//orbital_prediction_config/downloadSatelliteData`,
        data: data,
        method: REQUEST_TYPE.GET
    })
}
export function getSatelliteRoute(data){
    return request({
        url: `${BASE_URL}/rsmis-gdyc-service/orbital_prediction_calc/getSatelliteRoute`,
        data: data,
        method: REQUEST_TYPE.POST_JSON
    })
}
/**
 *卫星覆盖率统计
 * */
export async function getLiteCoverageStatistics(data) {
    return await request({
        url: `${BASE_URL}/rsmis-gdyc-service/orbital_prediction_calc/satelliteCoverageStatistics`,
        method: REQUEST_TYPE.POST_JSON,
        data
    })
}
/*获取卫星条带数*/
export function getStripsInfo(data){
    return request({
        url: `${BASE_URL}/rsmis-gdyc-service/orbital_prediction_calc/getStripsInfo`,
        data: data,
        method: REQUEST_TYPE.POST_JSON,
        timeout: 900000
    })
}
/**
 * 卫星轨迹下载
 * */
export function downloadSatelliteTrajectory(data){
    return request({
        url: `${BASE_URL}/rsmis-gdyc-service/orbital_prediction_calc/satelliteTrajectoryDownload`,
        data: data,
        method: REQUEST_TYPE.POST_JSON
    })
}


/**
 * 获取卫星动画数据
 * */
export function getStripSimulation(data){
    return request({
        url: `${BASE_URL}/rsmis-gdyc-service/orbital_prediction_calc/getStripSimulation`,
        data: data,
        method: REQUEST_TYPE.POST_JSON
    })
}

